package com.minelx.util.factor;

import java.util.Iterator;
import java.util.List;

public interface Factor<E> {
	Iterator<E> iterator();

	static <E> Factor<E> fromList(List<E> elements) {
		return elements::iterator;
	}
}
